<!-- www.1001javatips.com -->

<HTML>

<!-- Mirrored from www.1001javatips.com/indexcollections.htm by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 05 Jun 2011 07:49:53 GMT -->
<HEAD>
<META NAME="keywords" CONTENT="1001 Java tips, Java tutorial, Java certification, Java help, Java snippets, Java I/O, Java methods, Java classes, Java examples, Java resources, Sun Java">


<TITLE>1001 Java Tips, www.1001javatips.com, indexcollections.htm</TITLE>

<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>

<BODY BGCOLOR="white">
<FONT size="+1" CLASS="FrameHeadingFont">
<B>collections</B></FONT>
<BR>

<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
<TR>
<TD NOWRAP><FONT CLASS="FrameItemFont" color=mediumblue>

<A HREF="collectionsingeneral.htm" target="FrameB2">collections in general</A>
<BR>
<A HREF="findingcollectionmethods.htm" target="FrameB2">collection methods</A>
<p>

<FONT size="+1" CLASS="FrameHeadingFont" color=black>
<B>a. collection features</B></FONT>
<BR>
<A HREF="convertingcollectionstoArrays.htm" target="FrameB2">Arrays - converting to collections </A>
<BR>
<A HREF="EMPTYcollections.htm" target="FrameB2">collections EMPTY</A>
<BR>
<A HREF="reversingcollectionsorder.htm" target="FrameB2">collections reversing order</A>
<BR>
<A HREF="searchingcollections.htm" target="FrameB2">collections searching</A>
<BR>
<A HREF="singletons.htm" target="FrameB2">collection singletons</A>
<BR>
<A HREF="sortingcollections.htm" target="FrameB2">collections sorting</A>
<BR>
<A HREF="synchronizedcollections.htm" target="FrameB2">collections synchronized</A>
<BR>
<A HREF="unmodifiablecollections.htm" target="FrameB2">collections unmodifiable</A>


<BR>
<A HREF="Collectioninterface.htm" target="FrameB2"><b>Collection</b></A> interface
<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotaddObjomethod" target="FrameB2"><b>.add(Obj)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotaddAllCollcmethod" target="FrameB2"><b>.addAll(Coll)</b></A> collection method <BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotclearmethod" target="FrameB2"><b>.clear( )</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotcontainsObjomethod" target="FrameB2"><b>.contains(Obj)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotcontainsAllCollcmethod" target="FrameB2"><b>.containsAll(Coll)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotisEmptymethod" target="FrameB2"><b>.isEmpty( )</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotremoveObjomethod" target="FrameB2"><b>.remove(Obj)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotremoveAllCollcmethod" target="FrameB2"><b>.removeAll(Coll)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotretainAllObjomethod" target="FrameB2"><b>.retainAll(Obj)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dotsizemethod" target="FrameB2"><b>.size( )</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectioninterface.htm#dottoArraymethod" target="FrameB2"><b>.toArray( )</b></A>
 collection method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Collectioninterface.htm#dottoArrayObjamethod" target="FrameB2"><b>.toArray( Obj[ ] )</b></A>
 collection method

<BR>
<A HREF="Collectionsclass.htm" target="FrameB2"><b>Collections</b></A> class
<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectionsclass.htm#binarySearchListObjmethod" target="FrameB2"><b>binarySearch(List,  lookforObj )</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectionsclass.htm#maxCollmethod" target="FrameB2"><b>max(Coll)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectionsclass.htm#minCollmethod" target="FrameB2"><b>min(Coll)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectionsclass.htm#shuffleListmethod" target="FrameB2"><b>shuffle(List)</b></A>
 collection method<BR>
&nbsp &nbsp &nbsp
<A HREF="Collectionsclass.htm#copyListListmethod" target="FrameB2"><b>copy(List, List)</b></A>
 collection method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Collectionsclass.htm#fillListObjmethod" target="FrameB2"><b>fill(List, Obj)</b></A>
 collection method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Collectionsclass.htm#ncopiesmethod" target="FrameB2"><b>ncopies( )</b></A>
 collection method


<BR>
<A HREF="Enumerationinterface.htm" target="FrameB2"><b>Enumeration</b></A>  interface
<BR>
&nbsp &nbsp &nbsp
<A HREF="Enumerationinterface.htm#dotelementsmethod" target="FrameB2"><b>.elements( )</b></A>
  enumeration method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Enumerationinterface.htm#dothasMoreElementsmethod" target="FrameB2"><b>.hasMoreElements( )</b></A>
 enumeration method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Enumerationinterface.htm#dotnextElementmethod" target="FrameB2"><b>.nextElement( )</b></A>
  enumeration method


<BR>
<A HREF="iterators.htm" target="FrameB2"><b>Iterator </b></A>interface
<BR>
&nbsp &nbsp &nbsp
<A HREF="iterators.htm#dothasNextmethod" target="FrameB2"><b>.hasNext( )</b></A>
 iteration  method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="iterators.htm#dotnextmethod" target="FrameB2"><b>.next( )</b></A>
 iteration  method<BR>
 &nbsp &nbsp &nbsp
 <A HREF="iterators.htm#dotremovemethod" target="FrameB2"><b>.remove( )</b></A>
 iteration  method
<BR>
 &nbsp &nbsp &nbsp
 <A HREF="iterators.htm#dotaddObjmethod" target="FrameB2"><b>.add(Obj )</b></A> iteration  method
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="iterators.htm#dothasPreviousmethod" target="FrameB2"><b>.hasPrevious( )</b></A>
 iteration  method
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="iterators.htm#dotnextIndexmethod" target="FrameB2"><b>.nextIndex( )</b></A>
 iteration  method
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="iterators.htm#dotpreviousmethod" target="FrameB2"><b>.previous( )</b></A>
 iteration  method
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="iterators.htm#dotpreviousIndexmethod" target="FrameB2"><b>.previousIndex( )</b></A>
 iteration  method


<p>
<FONT size="+1" CLASS="FrameHeadingFont" color=black>
<B>b. Lists</B></FONT>
<BR>
<A HREF="howlistswork-2.htm" target="FrameB2">Lists - how they work</A>
<BR>
<A HREF="basicmethodsforlists.htm" target="FrameB2">Lists - basic methods</A>
<BR>


<A HREF="Listinterface.htm" target="FrameB2"><b>List</b></A> interface
<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Listinterface.htm#dotaddIndexObjmethod" target="FrameB2"><b>.add(index,Obj)</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotaddAllindexCollmethod" target="FrameB2"><b>.addAll(index, Coll)</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotgetIndex" target="FrameB2"><b>.getIndex( )</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotindexOfObjmethod" target="FrameB2"><b>.indexOf(Obj)</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotIteratormethod" target="FrameB2"><b>.iterator( )</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotlastIndexOfObjmethod" target="FrameB2"><b>.lastIndexOf(Obj)</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotsetindexObjmethod" target="FrameB2"><b>.set(index,Obj)</b></A>
 method for Lists
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Listinterface.htm#dotsubListfromIndextoIndexmethod" target="FrameB2"><b>.subList(fromIndex, toIndex)</b></A>
 method for Lists



<BR>
<A HREF="ArrayListclass.htm" target="FrameB2"><b>ArrayList</b></A> class
<BR>
 &nbsp &nbsp &nbsp
 <A HREF="ArrayListclass.htm#dotensureCapacityminCapacitymethod" target="FrameB2"><b>.ensureCapacity(minCap)</b></A>
 method of ArrayList


<BR>
<A HREF="LinkedListclass.htm" target="FrameB2"><b>LinkedList</b></A> class
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="LinkedListclass.htm#dotaddFirstObjmethod" target="FrameB2"><b>.addFirst(Obj)</b></A>
 method of LinkedList
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="LinkedListclass.htm#dotaddLastObjmethod" target="FrameB2"><b>.addLast(Obj )</b></A>
 method of LinkedList
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="LinkedListclass.htm#dotgetFirstmethod" target="FrameB2"><b>.getFirst( )</b></A>
 method of LinkedList
 <BR>
  &nbsp &nbsp &nbsp
 <A HREF="LinkedListclass.htm#dotgetLastmethod" target="FrameB2"><b>.getLast( )</b></A>
 method of LinkedList
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="LinkedListclass.htm#dotremoveFirstmethod" target="FrameB2"><b>.removeFirst( )</b></A>
 method of LinkedList
  <BR>
   &nbsp &nbsp &nbsp
  <A HREF="LinkedListclass.htm#dotremoveLastmethod" target="FrameB2"><b>.removeLast( )</b></A>
 method of LinkedList


<BR>
<A HREF="Stackclass.htm" target="FrameB2"><b>Stack</b></A> class
<BR>
  &nbsp &nbsp &nbsp
  <A HREF="Stackclass.htm#dotemptymethod" target="FrameB2"><b>.empty( )</b></A>
 method of Stack
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Stackclass.htm#dotpeekmethod" target="FrameB2"><b>.peek( )</b></A>
 method of Stack
 <BR>
  &nbsp &nbsp &nbsp
 <A HREF="Stackclass.htm#dotpopmethod" target="FrameB2"><b>.pop( )</b></A>
 method of Stack
 <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Stackclass.htm#dotpushObjmethod" target="FrameB2"><b>.push(Obj)</b></A>
 method of Stack
  <BR>



<A HREF="Vectorclass.htm" target="FrameB2"><b>Vector</b></A> class
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Vectorclass.htm#dotaddElementObjmethod" target="FrameB2"><b>.addElement(Obj)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotcapacitymethod" target="FrameB2"><b>.capacity( )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotcopyIntoObjmethod" target="FrameB2"><b>.copyInto(Obj)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotelementAtintmethod" target="FrameB2"><b>.elementAt(int )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotelementsmethod" target="FrameB2"><b>.elements( )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotfirstElementmethod" target="FrameB2"><b>.firstElement( )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotinsertElementAtObjindexmethod" target="FrameB2"><b>.insertElementAt(Obj, index)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotlastElementmethod" target="FrameB2"><b>.lastElement( )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotremoveAllElementsmethod" target="FrameB2"><b>.removeAllElements( )</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotremoveElementObjmethod" target="FrameB2"><b>.removeElement(Obj)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotremoveElementAtindexmethod" target="FrameB2"><b>.removeElementAt(index)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotsetElementAtObjindexmethod" target="FrameB2"><b>.setElementAt(Obj, index)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dotsetSizesizemethod" target="FrameB2"><b>.setSize(size)</b></A>
 method of Vector
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="Vectorclass.htm#dottrimToSizemethod" target="FrameB2"><b>.trimToSize( )</b></A>
 method for Lists



<p>
<FONT size="+1" CLASS="FrameHeadingFont" color=black>
<B>c. Sets</B></FONT>
<BR>
<A HREF="SETS.htm" target="FrameB2">Sets in general</A>
<BR>
<A HREF="basicmethodsforSets.htm" target="FrameB2">Sets - basic methods</A>


<BR>
<A HREF="HashSetclass.htm" target="FrameB2"><b>HashSet</b></A> class
<BR>
<A HREF="TreeSetclass.htm" target="FrameB2"><b>TreeSet</b></A> class
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeSetclass.htm#dotfirstmethod" target="FrameB2"><b>.first( )</b></A>
 method of TreeSet
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeSetclass.htm#dotlastmethod" target="FrameB2"><b>.last( )</b></A>
 method of TreeSet
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeSetclass.htm#dotheadSetObjmethod" target="FrameB2"><b>.headSet(Obj)</b></A>
 method of TreeSet
   <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeSetclass.htm#dottailSetObjmethod" target="FrameB2"><b>.tailSet(Obj)</b></A>
 method of TreeSet
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="TreeSetclass.htm#dotsubSetObjmethod" target="FrameB2"><b>.subSet(Obj)</b></A>
 method of TreeSet


<p>
<FONT size="+1" CLASS="FrameHeadingFont" color=black>
<B>d. Maps</B></FONT>
<BR>
<A HREF="MAPS.htm" target="FrameB2">Maps in general</A>
<BR>
<A HREF="methodsforMaps.htm" target="FrameB2">Maps - methods</A>
<BR>
<A HREF="Mapinterface.htm" target="FrameB2"><b>Map</b></A> interface
<BR>
 &nbsp &nbsp &nbsp
 <A HREF="Mapinterface.htm#dotclearmethod" target="FrameB2"><b>.clear( )</b></A>
 method for Maps
 <BR>
 &nbsp &nbsp &nbsp
 <A HREF="Mapinterface.htm#dotcontainsKeyObjmethod" target="FrameB2"><b>.containsKey(Obj)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotcontainsValueObjmethod" target="FrameB2"><b>.containsValue(Obj)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotentrySetObjmethod" target="FrameB2"><b>.entrySet(Obj)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotgetkeymethod" target="FrameB2"><b>.get(key)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotisEmptymethod" target="FrameB2"><b>.isEmpty( )</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotkeySetmethod" target="FrameB2"><b>.keySet( )</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotputkeyvaluemethod" target="FrameB2"><b>.put(key, value)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotputAllmapmethod" target="FrameB2"><b>.putAll(Map)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotremovekeymethod" target="FrameB2"><b>.remove(key)</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotsizemethod" target="FrameB2"><b>.size( )</b></A>
 method for Maps
  <BR>
  &nbsp &nbsp &nbsp
  <A HREF="Mapinterface.htm#dotvaluesmethod" target="FrameB2"><b>.values( )</b></A>
 method for Maps


<BR>
<A HREF="HashMapclass.htm" target="FrameB2"><b>HashMap</b></A> class
<BR>
<A HREF="IdentityHashMapclass.htm" target="FrameB2"><b>IdentityHashMap</b></A> class
<BR>
<A HREF="MapEntry.htm" target="FrameB2"><b>Map.Entry</b></A> class
<BR>
<A HREF="TreeMapclass.htm" target="FrameB2"><b>TreeMap</b></A> class
<BR>
  &nbsp &nbsp &nbsp
  <A HREF="TreeMapclass.htm#dotfirstKeymethod" target="FrameB2"><b>.firstKey( )</b></A>
 method
<BR>
  &nbsp &nbsp &nbsp
  <A HREF="TreeMapclass.htm#dotlastKeymethod" target="FrameB2"><b>.lastKey( )</b></A>
 method
 <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeMapclass.htm#dotheadMapmethod" target="FrameB2"><b>.headMap(key)</b></A>
 method
 <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeMapclass.htm#dottailMapmethod" target="FrameB2"><b>.tailMap(key)</b></A>
 method
 <BR>
   &nbsp &nbsp &nbsp
   <A HREF="TreeMapclass.htm#dotsubMapmethod" target="FrameB2"><b>.subMap(fromkey, tokey)</b></A>
 method






</FONT></TD>
</TR>
</TABLE>

<p>
<center>
<iframe src="http://rcm.amazon.com/e/cm?t=knowledgeboos-20&amp;o=1&amp;p=8&amp;l=as1&amp;asins=0072253606&amp;fc1=000000&amp;IS2=1&amp;lt1=_blank&amp;lc1=0000FF&amp;bc1=000000&amp;bg1=FFFFFF&amp;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
</center>

</BODY>

<!-- Mirrored from www.1001javatips.com/indexcollections.htm by HTTrack Website Copier/3.x [XR&CO'2010], Sun, 05 Jun 2011 07:49:53 GMT -->
</HTML>